<html>
<head>
  <title>URL Shotern</title>
  <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.3.0/pure-min.css">
</head>
<body>

<% unless @url.nil? %>
    <p>Your url <a><%= @url.original %></a> has been create to</p>
    <br>

    <a href="<%= @url.indentifier %>"> <%= @url.indentifier %> </a>
    <br>
<% end %> 

<form class="pure-form" action="/" method="post" >

        <input type="text" placeholder="Your origin url" name="origin">
        <input type="text" placeholder="Your custom url (not required)" name="custom">

       
        <button type="submit" class="pure-button pure-button-primary">Create</button>
</form>

<% if env['sinatra.error'] %>
 <p> <%= env['sinatra.error'] %> </p>
<% end %>


</body>
</html>